﻿using System;
using System.Collections.Generic;
using System.Data.Services.Common;

namespace ADO_Data_Service
{
    [DataServiceKey("ID")]
    public class Invoice
    {
        public int ID { get; set; }
        public DateTime dateInvoice { get; set; }
        private List<InvoiceLine> invoiceLinesPrivate;

        public List<InvoiceLine> invoiceLines
        {
            get
            {
                if (invoiceLinesPrivate == null)
                    invoiceLinesPrivate = new List<InvoiceLine>();
                return invoiceLinesPrivate;
            }
            set { invoiceLinesPrivate = value; }
        }
        public Thirdparty thirdParty { get; set; }
    }
}